package com.koron.order.common.mapper;

import com.koron.order.common.bean.po.OrderLocationPo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工单工作地点表(OrderLocation)表数据库访问层
 *
 * @author zhouj
 * @since 2022-05-17 10:07:37
 */
public interface OrderLocationMapper {

    int insertOrUpdate(OrderLocationPo orderLocation);

    int insertOrUpdateBatch(@Param("list") List<OrderLocationPo> orderLocationList);

    int insert(OrderLocationPo orderLocation);

    int insertBatch(@Param("list") List<OrderLocationPo> orderLocationList);

    int update(OrderLocationPo orderLocation);

    int deleteById(String id);

    OrderLocationPo queryById(String id);

    List<OrderLocationPo> queryList(OrderLocationPo orderLocation);

    List<OrderLocationPo> queryByOrderId(@Param("orderId") String orderId);

    int deleteByOrderId(@Param("orderId") String orderId);

    List<OrderLocationPo> queryByOrderIds(@Param("orderIds") List<String> orderIds);

    int deleteByOrderIds(@Param("orderIds") String orderIds);

}